package grape.house.rest.estatelicence.form;
import grape.common.rest.form.BaseForm;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
/**
 * <p>
 * 楼盘许可证表
 * </p>
 *
 * @author yangwei
 * @since 2020-09-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="楼盘许可证添加表单对象")
public class EstateLicenceCreateForm extends BaseForm {

    private static final long serialVersionUID = 1L;

    @NotEmpty(message="编号不能为空")
    @ApiModelProperty(value = "编号，唯一",required = true)
    private String code;

    @NotEmpty(message="名称不能为空")
    @ApiModelProperty(value = "名称",required = true)
    private String name;

    @NotEmpty(message="楼盘id不能为空")
    @ApiModelProperty(value = "楼盘id",required = true)
    private String estateId;

    @NotEmpty(message="五证许可类型不能为空")
    @ApiModelProperty(value = "五证许可类型，字典id",required = true)
    private String permitTypeDictId;

    @NotEmpty(message="图片地址不能为空")
    @ApiModelProperty(value = "图片地址",required = true)
    private String imageUrl;

    @NotNull(message="发证时间不能为空")
    @ApiModelProperty(value = "发证时间",required = true)
    private Long permitAt;

    @NotNull(message="排序不能为空")
    @ApiModelProperty(value = "排序",required = true)
    private Integer seq;

    @ApiModelProperty(value = "备注")
    private String remark;



}
